<?php

if (!defined('BASEPATH'))
    exit('No direct script access allowed');

$config = array(
	'user/create' =>
		array(
			array('field' => 'display_name','label' => 'Display Name','rules' => 'trim|required'),
			array('field' => 'first_name','label' => 'First Name','rules' => 'trim|required'),
			array('field' => 'last_name','label' => 'Last Name','rules' => 'trim|required'),
			array('field' => 'email','label' => 'Email Address','rules' => 'trim|required|valid_email'),
			array('field' => 'username','label' => 'Username','rules' => 'trim|required|min_length[4]'),
			array('field' => 'password','label' => 'Password','rules' => 'trim|required|min_length[4]|max_length[32]'),
			array('field' => 'password2','label' => 'Password Confirmation','rules' => 'trim|required|matches[password]')
			),
			
	'user/edit' =>
		array(
			array('field' => 'display_name','label' => 'Display Name','rules' => 'trim|required'),
			array('field' => 'first_name','label' => 'First Name','rules' => 'trim|required'),
			array('field' => 'last_name','label' => 'Last Name','rules' => 'trim|required'),
			array('field' => 'email','label' => 'Email Address','rules' => 'trim|required|valid_email'),
			array('field' => 'username','label' => 'Username','rules' => 'trim|required|min_length[4]'),
			array('field' => 'password','label' => 'Password','rules' => 'trim|min_length[4]|max_length[32]|matches[password2]'),
			array('field' => 'password2','label' => 'Password Confirmation','rules' => 'trim|matches[password]')
			),	
			
	'category/create' =>
		array(
			array('field' => 'name','label' => 'Name','rules' => 'trim|required'),
			array('field' => 'name_clean','label' => 'Name Clean','rules' => 'trim|required'),
			),
			
	'category/edit' =>
		array(
			array('field' => 'name','label' => 'Name','rules' => 'trim|required'),
			array('field' => 'name_clean','label' => 'Name Clean','rules' => 'trim|required'),
			),
			
	'post/create' =>
		array(
			array('field' => 'title','label' => 'Title','rules' => 'trim|required'),
			array('field' => 'category_id','label' => 'Category','rules' => 'required|is_natural_no_zero')
			),
			
	'post/edit' =>
		array(
			array('field' => 'title','label' => 'Title','rules' => 'trim|required'),
			array('field' => 'category_id','label' => 'Category','rules' => 'required|is_natural_no_zero')
			),		
			
	'contact/send' =>
		array(
			array('field' => 'name','label' => 'Name','rules' => 'trim|required'),
			array('field' => 'email','label' => 'Email Address','rules' => 'trim|required|valid_email'),
			array('field' => 'message','label' => 'Message','rules' => 'trim|required')
			)		
	
				
			
			
		
);


?>